import { getVersion } from "../communicate/AjaxPart.js";
import { Version } from "../all.js";

async function renderVersion(packageName) {
    let versions = await getVersion(packageName);

    Version.innerHTML = versions.map((i) => `<option value="${i}">${i}</option>`).join("");
    return versions[0];
}
export default renderVersion;
